package com.hs.android.fortress.model;

import java.util.List;

public class Tank {
	
	private Integer tankId;
	private String tankName;
	private int maxEnergy;
	private List<Bomb> bombList;
	
	public Integer getTankId() {
		return tankId;
	}
	
	public void setTankId(Integer tankId) {
		this.tankId = tankId;
	}
	
	public String getTankName() {
		return tankName;
	}
	
	public void setTankName(String tankName) {
		this.tankName = tankName;
	}
	
	public int getMaxEnergy() {
		return maxEnergy;
	}
	
	public void setMaxEnergy(int maxEnergy) {
		this.maxEnergy = maxEnergy;
	}	
	
    public List<Bomb> getBombList() {
        return bombList;
    }

    public void setBombList(List<Bomb> bombList) {
        this.bombList = bombList;
    }
    
    public Bomb getBomb(int index){
    	return bombList.get(index);
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Tank)) {
            return false;
        }
        Tank other = (Tank) object;
        if ((this.tankId == null && other.tankId != null) || (this.tankId != null && !this.tankId.equals(other.tankId))) {
            return false;
        }
        return true;
    }
	
}
